package com.lx.boot.oss.entity;

import com.lx.annotation.Note;
import com.lx.boot.config.annotation.Properties;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
@Properties(prefix = "server.oss")
public class OssProperties {

    @Note("访问站点 示例: http://oss-cn-beijing.aliyuncs.com  http://imizan.cn (实际自定义域名: 桶名.imizan.cn)")
    @NotBlank(message = "访问站点不能为空!")
    private String endpoint;

    @Note("ACCESS_KEY")
    @NotBlank(message = "ACCESS_KEY不能为空!")
    private String accessKey;

    @Note("SECRET_KEY")
    @NotBlank(message = "SECRET_KEY不能为空!")
    private String secretKey;

    @Note("存储空间名")
    @NotBlank(message = "存储空间名不能为空!")
    private String bucketName;

    @Note("存储区域")
//    @NotBlank(message = "存储区域不能为空!")
    private String region;

    @Note("桶在域名后面 例如minio")
    private boolean enablePathStyleAccess;

}
